Re: tcp4u

new topic     » goto parent     » topic index » view thread      » older message » newer message

------=_NextPart_000_0052_01C0B886.C35C2BE0
	charset="iso-8859-1"

Hi,

Doing a tcp4u_connect will attempt to open a socket on the specified=20
server, on the specified port.  A program needs to be running on that
server, waiting on the specified port for a connection to be achieved.

Using sockets always involves at least two programs, they don't =
necessarily
have to both be your programs.  You could for instance connect to a =
telnet=20
port on a Unix server, or a SMTP port on a mail server etc.

The example programs that come with tcp4u all happen to have a server
side and a client side.

It's a little difficult to determine what is wrong with the information =
you gave.

If you want to send me your program and a little information on what =
it's=20
supposed to do I'll gladly take a look at it.


Ray Smith


  I'm using tcp4u currently, but there seems to be a problem. I CAN'T =
GET IT TO CONNECT. ARG. It's driving me crazy. Right now, I'm pretty =
much copying and pasting statements, and modifying them as need be. I'm =
100% sure the syntax is correct. So, I was scurininzing tcp4u_connect in =
manual.html, and something caught my eye. It said it connects to sockets =
doing a tcp4u_accept. Now, I really hope this isn't true, but does this =
only work with server specifically doing a tcp4u_accept, or all server =
just generally accepting connections?
  =20
  =20
  Btw, for reference, here is the statement I'm using:
      sock_connect =3D tcp4u_connect(server_name, NULL, port)
  =20
  No problem as far as I can tell. I have narrowed it down to this =
statement using trace.
  =20
  May try my hand at libnet if this doesn't work. I really like tcp4u =
though.

------=_NextPart_000_0052_01C0B886.C35C2BE0
	charset="iso-8859-1"

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.2614.3500" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
socket on the=20
specified </FONT></DIV>
<DIV><FONT face=3DArial>server, on the specified port.&nbsp; A program =
needs to be=20
running on that</FONT></DIV>
<DIV><FONT face=3DArial>server, waiting on the specified port for a =
connection to=20
be achieved.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial>Using sockets always involves at least two =
programs, they=20
don't necessarily</FONT></DIV>
<DIV><FONT face=3DArial>have to both be your programs.&nbsp; You could =
for=20
instance connect to a telnet </FONT></DIV>
<DIV><FONT face=3DArial>port on a Unix server, or a SMTP port on a mail =
server=20
etc.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial>The example programs that come with tcp4u all =
happen to=20
have a server</FONT></DIV>
<DIV><FONT face=3DArial>side and a client side.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial>It's a little difficult to determine what is =
wrong with=20
the information you gave.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial>If you want to send me =
your&nbsp;program&nbsp;and a little=20
information </FONT><FONT face=3DArial>on what it's </FONT></DIV>
<DIV><FONT face=3DArial>supposed to do I'll gladly take a look at =
it.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Ray Smith</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<BLOCKQUOTE=20
style=3D"BORDER-LEFT: #000000 2px solid; MARGIN-LEFT: 5px; MARGIN-RIGHT: =
0px; PADDING-LEFT: 5px; PADDING-RIGHT: 0px">
  <DIV><FONT face=3DArial size=3D2>I'm using tcp4u currently, but there =
seems to be=20
  a problem. I CAN'T GET IT TO CONNECT. ARG. It's driving me crazy. =
Right now,=20
  I'm pretty much copying and pasting statements, and modifying them as =
need be.=20
  I'm 100% sure the syntax is correct. So, I was scurininzing =
tcp4u_connect in=20
  manual.html, and something caught my eye. It said it connects to =
sockets doing=20
  a tcp4u_accept. Now, I really hope this isn't true, but does this only =
work=20
  with server specifically doing a tcp4u_accept, or all server just =
generally=20
  accepting connections?</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
  <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
  <DIV><FONT face=3DArial size=3D2>Btw, for reference, here is the =
statement I'm=20
  using:</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;&nbsp; <FONT =
size=3D2>sock_connect =3D=20
  tcp4u_connect(server_name, NULL, port)</FONT></FONT></DIV>
  <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
  <DIV><FONT face=3DArial size=3D2>No problem as far as I can tell. I =
have narrowed=20
  it down to this statement using trace.</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
  <DIV><FONT face=3DArial size=3D2>May try my hand at libnet if this =
doesn't work. I=20
  really like tcp4u though.</FONT></DIV></BLOCKQUOTE>


------=_NextPart_000_0052_01C0B886.C35C2BE0--

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu