Pages: 1
  Print  
Author Topic: Network command help.  (Read 1084 times)
Offline (Unknown gender) intygamer
Posted on: October 10, 2013, 09:24:10 PM

Member
Joined: Mar 2013
Posts: 77

View Profile Email
I am making a network example over internet, but having problems connecting my 2 computers.  I am using the 8/24/13 version of Enigma when network was working. 

My question is am I using the following network commands correctly?

Server Code:
Code: [Select]
serversocketid = net_connect_tcp("0.0.0.0", "25565", true);
if(serversocketid >-1)
{tcp = 'connected';}
else
{tcp = 'Failed';}

Client Code:
Code: [Select]
clientsocketid = net_connect_tcp("108.224.54.186", "25565", false);
if(clientsocketid >-1)
{tcp = 'connected';}
else
{tcp = 'Failed';}

The server will connect but client wont.  This is my first time making network game.  I have Ubuntu 12.4 and Firestarter for firewall.

Please help when you get a chance.

Thanks
Joe

 

Logged
Offline (Male) Goombert
Reply #1 Posted on: October 10, 2013, 11:19:41 PM

Developer
Location: Cappuccino, CA
Joined: Jan 2013
Posts: 3108

View Profile
I am not sure if those are correct or not, that system has blocking on, which makes it difficult to work with, when it is finished it won't.

Take a look at this example, because it is an actual two player game I managed to make.
https://www.dropbox.com/s/ocsnjhbytixvubj/twoplayer.gm81
Logged
I think it was Leonardo da Vinci who once said something along the lines of "If you build the robots, they will make games." or something to that effect.

Offline (Unknown gender) intygamer
Reply #2 Posted on: October 12, 2013, 10:41:48 PM

Member
Joined: Mar 2013
Posts: 77

View Profile Email
Thanks Robert, that will help alot.   :)

Thanks
Joe
Logged
Offline (Male) Goombert
Reply #3 Posted on: October 14, 2013, 07:21:39 PM

Developer
Location: Cappuccino, CA
Joined: Jan 2013
Posts: 3108

View Profile
inty, just to update you, Curl headers are now included in the windows portable zip, so Berkeley Sockets should work out of the box on Windows now
Logged
I think it was Leonardo da Vinci who once said something along the lines of "If you build the robots, they will make games." or something to that effect.

Pages: 1
  Print