'Euphoria - server code for my first mud!
'by KrashSmith81@gmail.com, Krash Smith
cls
main:
server = _OPENHOST("TCP/IP:1981")
PRINT "Waiting for connection..."
DO
HOST = _OPENCONNECTION(server)
LOOP UNTIL HOST <> 0
print
PRINT "A player has joined!"
SLEEP 2
'print #host, "Welcome to Euphoria!"
currMsg$ = "Welcome to Euphoria!"
PUT #host, , currMsg$
close #host
'Euphoria - client code for my first mud!
'by KrashSmith81@gmail.com, Krash Smith
cls
main:
client2server = _OPENCLIENT("TCP/IP:1981:127.0.0.1")
PRINT "Attempting connection to Euphoria Server..."
if client2Server = 0 then
print "Connection Failed!"
end
end if
print
PRINT "Connection Successful!"
SLEEP 2
'input #client2Server, serverMsg$
GET #client2server, ,serverMsg$
print serverMsg$
close client2Server