PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Noms de domaine > comp.protocols.tcp-ip > encapsulating user info inside tcp ip header
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
comp.protocols.tcp-ip TCP and IP network protocols.

encapsulating user info inside tcp ip header

Réponse
 
LinkBack Outils de la discussion
Vieux 18/05/2006, 09h24   #1
blackstreetcat@hotmail.com
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut encapsulating user info inside tcp ip header

is there a way to encapsulate user info inside tcp/ip header(perhaps
using socket options or using unused fields).

because I 'd like to get information before rceiving on the socket.
on the client side
==============
SOCKET s;
initializaion of the socket.

setSocketOption(s,key,"hello");

on the sever side
===============
SOCKET c =accept(serversocket..);
char str[32];
getSocketOption(c,key,&str);

thanks.

Kat.

  Réponse avec citation
Vieux 18/05/2006, 12h34   #2
tsar.peter@gmail.com
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: encapsulating user info inside tcp ip header

No.
A TCP socket is just a byte-stream.

Are you thinking in terms of OSI connection-data ? Does not
exist, you have to accept() the incoming connection and
then read() or close()

  Réponse avec citation
Vieux 18/05/2006, 13h27   #3
Barry Margolin
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: encapsulating user info inside tcp ip header

In article <1147940674.420290.68040@u72g2000cwu.googlegroups. com>,
blackstreetcat@hotmail.com wrote:

> is there a way to encapsulate user info inside tcp/ip header(perhaps
> using socket options or using unused fields).


TCP does have an options field in the header, but I don't think any
common APIs provide a way to put custom data there. Why don't you just
include this as part of your application protocol?

--
Barry Margolin, barmar@alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***
*** PLEASE don't copy me on replies, I'll read them in the group ***
  Réponse avec citation
Vieux 19/05/2006, 12h56   #4
shrike@cyberspace.org
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: encapsulating user info inside tcp ip header

Howdy,

Look into IPSec, it bumps the stack and has several portable options
for authentication/encryption before the transport layer.

-Matt

  Réponse avec citation
Vieux 25/05/2006, 20h53   #5
blackstreetcat@hotmail.com
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: encapsulating user info inside tcp ip header

Thanks guys for the replys.

I tried to google "ipsec" and I could not find any code that will
me use this protocol.

does anyone has a code snippet I can use?

thanks.

Kat.

  Réponse avec citation
Vieux 25/05/2006, 21h41   #6
blackstreetcat@hotmail.com
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: encapsulating user info inside tcp ip header

Thanks guys for the replys.

I tried to google "ipsec" and I could not find any code that will
me use this protocol.

does anyone has a code snippet I can use?

thanks.

Kat.

  Réponse avec citation
Vieux 26/05/2006, 10h55   #7
Kari Hurtta
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: encapsulating user info inside tcp ip header

blackstreetcat@hotmail.com writes:

> Thanks guys for the replys.
>
> I tried to google "ipsec" and I could not find any code that will
> me use this protocol.


Perhaps
http://ipsec-tools.sourceforge.net/

/ Kari Hurtta
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 13h13.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,13459 seconds with 15 queries