Arsip: Asynchronous Socket Error 10053

more 15 years ago
ivan
Guys minta solusi donk,
Saya lagi buat aplikasi dengan menggunakan SocketServer. Setelah jadi kemudian saya uji coba dengan membuat aplikasi menggunakan SocketClient. Semua berjalan sesuai yg diharapkan hingga aplikasi client melakukan disconnect (proses disconnect dilakukan sendiri oleh client) terjadi error pada aplikasi SocketServer yaitu Asynchronous Socket Error 10053 dan berefek aplikasi server tidak mau di terminate dengan pesan Windows Socket Error: An Existing Connection was forcibly by the remote host (10054), on API Send
Sebenarnya permasalahan sudah di temukan yaitu kesalahan di aplikasi Client pada event OnRead nya harus di isi dengan script.
Yang ingin saya tanyakan, bisa gak pada aplikasi servernya yg dimodifikasi agar tidak terjadi error, sebab aplikasi ini rencana nya bisa diakses oleh client siapa saja (Siapa pun bisa membuat aplikasi clientnya sendiri) sehingga tidak mengganggu aplikasi Server.
Minta masukkannya donk

more 15 years ago
DelphiExpert
error code 10053 described as bellow:
An existing connection was forcibly closed by the remote host. This normally results if the peer application on the remote host is suddenly stopped, the host is rebooted, the host or remote network interface is disabled, or the remote host uses a hard close (see setsockopt for more information on the SO_LINGER option on the remote socket). This error may also result if a connection was broken due to keep-alive activity detecting a failure while one or more operations are in progress. Operations that were in progress fail with WSAENETRESET. Subsequent operations fail with WSAECONNRESET."
jika dikau berencana agar siapa aja bisa bikin aplikasi client-nya, dikau harus menerapkan konsep open transport/message protocol, sediakan sejumlah interface sebagai standarisasi.

more 15 years ago
ivan
dikau harus menerapkan konsep open transport/message protocol, sediakan sejumlah interface sebagai standarisasi.sejumlah interface? Maksudnya? Ato mungkin ada ga cara untuk menghandle error nya? biar gak muncul ato dicuekin?

more 15 years ago
DelphiExpert
1. agar orang lain bisa membuat sesuatu yg bisa bekerjasama dengan framework lain, harus dibuat standarisasi.
standarisasi bisa di sisi commands, message format, atau interface terhadap SDK yg dikau buat, semacam COM app / DLL model, musti ada header/interface dsj.
2. cara handler error tergantung pada structure komponen socket tsb dibuat, jika pake bawaan delphi (SocketServer) cari tau, ada ngga' kira2 method yg bisa di override utk atasi eksepsi, atau event2 jika ada eksepsi?
setahuku pada mode async socket (non-blocking), eksepsi-nya susah di tangkep, karena otomatis di raise dalam thread socket tsb. & SocketServer tidak menyediakan event utk meng-handle exception tsb.
kecuali dikau pake synch mode (blocking), eksepsi gampang di tangkap pake try - except block.
3. solusinya? yg ganti komponent socket yg dikau gunakan, cari yg bisa handle exception (silent exception), misal WSocket punya franch. piette, ato jika tidak berkenan pake aja madException utk meng-handle exception tsb. OK

more 15 years ago
ivan
Wow lengkap sekale penjelasannya.
Tengkyuuu, saya sudah menangkap penjelasannya sekaligus menambah pengetahuan saya terhadap socket.
Akan saya coba saran dari Om DelphiExpert
more ...
- Pages:
- 1
reply |
Report Obsolete
Last Articles
Last Topic
- PascalTalk #6: (Podcast) Kuliah IT di luar negeri, susah gak sih?
by LuriDarmawan in Tutorial & Community Project more 2 years ago - PascalTalk #5: UX: Research, Design and Engineer
by LuriDarmawan in Tutorial & Community Project more 2 years ago - PascalTalk #4: Obrolan Ringan Seputar IT
by LuriDarmawan in Tutorial & Community Project more 2 years ago - PascalTalk #2: Membuat Sendiri SMART HOME
by LuriDarmawan in Tutorial & Community Project more 2 years ago - PascalTalk #3: RADically Fast and Easy Mobile Apps Development with Delphi
by LuriDarmawan in Tutorial & Community Project more 2 years ago - PascalTalk #1: Pemanfaatan Artificial Intelligence di Masa Covid-19
by LuriDarmawan in Tutorial & Community Project more 2 years ago - Tempat Latihan Posting
by LuriDarmawan in OOT more 3 years ago - Archive
- Looping lagi...
by idhiel in Hal umum tentang Pascal Indonesia more 10 years ago - [ask] koneksi ke ODBC user Dsn saat runtime dengan ado
by halimanh in FireBird more 10 years ago - Validasi menggunakan data tanggal
by mas_kofa in Hal umum tentang Pascal Indonesia more 10 years ago
Random Topic
- ari Tempat Kursus
by NiceDream in OOT more 15 years ago - ASK : Image recognition
by double580 in Multimedia & Graphic Enhancement more 16 years ago - Aplikasi Apotik
by andip70 in Hal umum tentang Pascal Indonesia more 16 years ago - generate key tab
by ndak_ngudeng in Hal umum tentang Pascal Indonesia more 16 years ago - Cari kata dalam TStringList.....
by EkoIndri in Tip n Trik Pemrograman more 16 years ago - DETEKSI REMOVABLE DISK???
by n3o_cybertech in Tip n Trik Pemrograman more 15 years ago - can'n retur a result set in the given context di mysl + delp
by amakita in Hal umum tentang Pascal Indonesia more 15 years ago - E-Book Here!
by ZeAL in OOT more 17 years ago - query...
by heri15_com in Games more 13 years ago - menu print pada MDI application
by m26403131 in Hal umum tentang Pascal Indonesia more 16 years ago