RTC Forums
November 24, 2024, 06:53:25 PM
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Home
Help
Login
Register
RTC Forums
>
Subscription
>
Support
>
RtcTcpServer unique identifier?
Pages: [
1
]
« previous
next »
Print
Author
Topic: RtcTcpServer unique identifier? (Read 4310 times)
hannesgw
RTC Expired
Posts: 11
RtcTcpServer unique identifier?
«
on:
July 26, 2012, 08:22:10 AM »
Hello I would like to know how I can identify(unique) in a multi-threaded server application, the connections.
So that I can store information to each connection (like sessions).
Logged
D.Tkalcec (RTC)
Administrator
Posts: 1881
Re: RtcTcpServer unique identifier?
«
Reply #1 on:
July 26, 2012, 12:05:09 PM »
I'm not sure why you are using raw TCP/IP components instead of HTTP-based components, but if you are asking where you can store information about the physical connection you are currently working with, then check the "Info" property of the "Sender:TRtcConection" parameter (sent to every event triggered for any connection).
NOTE: Session is NOT the same as a physical connection. Normally, sessions will "live" much longer than physical connections, and are used to uniquely identify Clients, independently of physical connections. Would you be using HTTP-based components (TRtcHttpServer/TRtcHttpClient), you would have access to built-in RTC Session management through the "Session" property, which is available on all TRtcDataClient and TRtcDataServer component descendants (used for HTTP communication).
Best Regards,
Danijel Tkalcec
Logged
Pages: [
1
]
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
Dashboard
-----------------------------
=> General
=> 3rd-Party
=> Quick Start
-----------------------------
Subscription
-----------------------------
=> Support
Loading...