Jump to content
Sign in to follow this  
Aiakonai

tcp or udp connections (any help appreciated)

Recommended Posts

Aiakonai

Hello I am trying to write a script to connect between computers on a network at work. I'm not very familiar with how this works and I cannot seem to find this "help file on tcp connections" anywhere... all I see are extremely large completed programs... if possible could someone please

A) point me in the right direction to how this stuff works.

or...

:) reply a simple example I can work with. (not a 400+line program ":(")


hmm... I wonder which key is the any key :O

Share this post


Link to post
Share on other sites
therms

Hello I am trying to write a script to connect between computers on a network at work. I'm not very familiar with how this works and I cannot seem to find this "help file on tcp connections" anywhere... all I see are extremely large completed programs... if possible could someone please

A) point me in the right direction to how this stuff works.

or...

:) reply a simple example I can work with. (not a 400+line program ":(")

The help file has nice examples of how to use TCP and UDP functions.

Just look under Function Reference > Network Functions.

There's a TCP and UDP server and client in there.

Share this post


Link to post
Share on other sites
Aiakonai

The help file has nice examples of how to use TCP and UDP functions.

Just look under Function Reference > Network Functions.

There's a TCP and UDP server and client in there.

I am trying to make a client/server program using either of these types of connection

I have attempted a few ways of connecting two computers with TCP mostly just

slight modifications to the help file to try and understand how this works.

For this code

TCPStartUp()

$socket = TCPConnect( $g_IP, 65432 ) <----

what would be a good port for a network only connection (not going over the internet)?

should i be giving the ipaddress returned by @IPAdress1 ??


hmm... I wonder which key is the any key :O

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×