socket write

Login to reply to this topic.
Wed, 2005-03-16 13:40
Joined: 2005-03-01
Forum posts: 18
hy guys Smiley
i need to make a program that connects through socket to a server, and i tooked the Sockets example from series60 (i have a N3650).
the problem is that i want to send to my server a command like "(LOGIN)(USER)(PASS)" without reading it from the keyboard, and the WriteL function takes as a parametre const TDesC8 & aData. the question is how do i convert "char" to "const TDesC8 &"?
plz i need help

Wed, 2005-03-16 14:00
Joined: 2004-12-03
Forum posts: 192
socket write
why "char" ?
Code:
TBuf8<100> theString;
theString.Copy(_L8("(LOGIN)(USER)(PASS)"));
Tue, 2005-03-22 14:50
Joined: 2005-03-01
Forum posts: 18
socket write
if i want to make a connection through gprs can i use the sockets example? or through gprs i cant use sockets?
i tryed the sockets example, it works fine while my phone is connected to the computer through Bluetooth, but when i close bluetooth connection and try connecting the application through gprs i get the TIMEOUT error.
  • Login to reply to this topic.