🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.os.linux.programowanie
Article #60229

Odbieranie danych binarnych poprzez funkcje recv()

#60229
From: Mike
Date: Wed, 26 Oct 2005 15:43
16 lines
1576 bytes
Witam

Pisze program do wysylania smsow..m.in. na siec orange...i mam maly
problem..korzystam z funkcji send() i recv() do obslugi komunikacji poprzez
sockety...jak wiadomo..orange ma swoje tokeny w formie GIF'ow...i je musze
pobierac...robie to poprzez funkcje recv..ale jest jeden duzy
problem..mianowicie funkcja recv zapisuje dane do zamiennej typu char..a
char jest od -127 do 128...a zeby ten obrazek odebrac..funkcja musi
zapisywac np do zmiennej typu unsigned char..gdzie jest od 0 do 255..a na
to nie pozwala:(...jak to zrobic????jest moze jakas inna funkcja ktora moze
zapisywac odebrane dane z gniazdka do zmiennej dowolnego typu??albo moze
przekonwertowac char na unsigned char;/??

Dziekuje z gory za pomoc

Pozdrawiam
Technical Details
Message-ID: <1u1zqhsu5levy$.1o5i9yxa36fif.dlg@40tude.net>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!newsfeed.gazeta.pl!news.nask.pl!news.nask.org.pl!newsfeed.tpinternet.pl!nemesis.news.tpi.pl!atlantis.news.tpi.pl!news.tpi.pl!not-for-mail

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!newsfeed.gazeta.pl!news.nask.pl!news.nask.org.pl!newsfeed.tpinternet.pl!nemesis.news.tpi.pl!atlantis.news.tpi.pl!news.tpi.pl!not-for-mail
From: Mike <meloni@klub.chipSKASUJTO.pl>
Newsgroups: pl.comp.os.linux.programowanie
Subject: Odbieranie danych binarnych poprzez funkcje recv()
Date: Wed, 26 Oct 2005 17:43:39 +0200
Organization: tp.internet - http://www.tpi.pl/
Lines: 16
Message-ID: <1u1zqhsu5levy$.1o5i9yxa36fif.dlg@40tude.net>
NNTP-Posting-Host: em58.internetdsl.tpnet.pl
Mime-Version: 1.0
X-Trace: nemesis.news.tpi.pl 1130341460 12233 80.53.12.58 (26 Oct 2005 15:44:20 GMT)
X-Complaints-To: usenet@tpi.pl
NNTP-Posting-Date: Wed, 26 Oct 2005 15:44:20 +0000 (UTC)
User-Agent: 40tude_Dialog/2.0.15.1pl
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit